package com.fit.dao.student;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.student.Student;
import com.fit.entities.user.User;

public interface StudentDAO {

	@CommitAfter
	public boolean save(Student newStudent);

	@CommitAfter
	public boolean delete(Student student);

	@CommitAfter
	public boolean update(Student student);

	public List<Student> findAll();

	public Student findByIdStudent(int studentId);

	public Student findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
